8afc12d32ec1bea4fe5d675bf91fcfca39a385fd,src/main/java/org/bytedeco/javacv/OpenCVFrameGrabber.java,OpenCVFrameGrabber,start,#,170
Before Change
}
}
if (imageWidth > 0) {
if (cvSetCaptureProperty(capture, CV_CAP_PROP_FRAME_WIDTH, imageWidth) == 0) {
cvSetCaptureProperty(capture, CV_CAP_PROP_MODE, imageWidth); // ??
}
}
After Change
capture = new VideoCapture(deviceNumber);
}
if (imageWidth > 0) {
if (!capture.set(CV_CAP_PROP_FRAME_WIDTH, imageWidth)) {
capture.set(CV_CAP_PROP_MODE, imageWidth); // ??
}
}